package gov.ccswj.modules.ccbusiness.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import gov.ccswj.modules.ccbusiness.dao.CYearreportassureDao;
import gov.ccswj.modules.ccbusiness.entity.CYearreportassureEntity;
import gov.ccswj.modules.ccbusiness.service.CYearreportassureService;



@Service("cYearreportassureService")
public class CYearreportassureServiceImpl implements CYearreportassureService {
	@Autowired
	private CYearreportassureDao cYearreportassureDao;
	
	@Override
	public CYearreportassureEntity queryObject(Integer id){
		return cYearreportassureDao.queryObject(id);
	}
	
	@Override
	public List<CYearreportassureEntity> queryList(Map<String, Object> map){
		return cYearreportassureDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return cYearreportassureDao.queryTotal(map);
	}
	
	@Override
	public void save(CYearreportassureEntity cYearreportassure){
		cYearreportassureDao.save(cYearreportassure);
	}
	
	@Override
	public void update(CYearreportassureEntity cYearreportassure){
		cYearreportassureDao.update(cYearreportassure);
	}
	
	@Override
	public void delete(Integer id){
		cYearreportassureDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		cYearreportassureDao.deleteBatch(ids);
	}
	@Override
	public void deleteByname(String entname) {
		cYearreportassureDao.delete(entname);
		
	}
}
